package com.koron.css2.serviceManage.bean;

import com.koron.css2.serviceManage.utils.CommonUtils;
import org.bson.types.ObjectId;

/**
 * 服务区域配置类
 * @author 甄玉晴
 *
 */
public class ServerAreaBean {
	private String id;
	private String serverAreaName;
	private String serverAreaId;
	private String remarks;
	private String serverAreaNo;
	private String group;
	private String createBy;
	private String createTime;
	private String modifyBy;
	private String modifyTime;
	
	public String getGroup() {
		return group;
	}
	public void setGroup(String group) {
		this.group = group;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getServerAreaName() {
		return serverAreaName;
	}
	public void setServerAreaName(String serverAreaName) {
		this.serverAreaName = serverAreaName;
	}
	public String getServerAreaId() {
		return serverAreaId;
	}
	public void setServerAreaId(String serverAreaId) {
		this.serverAreaId = serverAreaId;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getServerAreaNo() {
		return serverAreaNo;
	}
	public void setServerAreaNo(String serverAreaNo) {
		this.serverAreaNo = serverAreaNo;
	}
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getModifyBy() {
		return modifyBy;
	}
	public void setModifyBy(String modifyBy) {
		this.modifyBy = modifyBy;
	}
	public String getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}
	public void setUpdateInfo(UserInfoBean userInfo) {
		setModifyBy(userInfo.getUserInfo().getName());
		setModifyTime(CommonUtils.getCurrentTime());
	}
	public void setCreateInfo(UserInfoBean userInfo) {
		setId(new ObjectId().toHexString());
		setCreateBy(userInfo.getUserInfo().getName());
		setCreateTime(CommonUtils.getCurrentTime());
	}

}
